package page;

public class Manager extends Employee{
    //子类继承父类方法
    public Manager(int age, String name,double bounus) {
        super(age, name);
        this.bounus = bounus;
    }

    public double getSalary() {
        double saluary = super.getSalary();
        return bounus+saluary;
    }

    public void setBounus(double bounus) {
        this.bounus = bounus;
    }

    double bounus;

    @Override
    public String toString() {
        return "Manager{" +
                "age=" + age +
                ", bounus=" + bounus +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                ", data=" + data +
                ", AA=" + AA +
                "} " + super.toString();
    }
}
